iter-read
This crate is a small library that provides a type that implements
std::io::Read
for iterators over bytes (u8
) and sequences of it, and also
Result<u8, E>
, Result<Vec<u8>, E>
etc.
Installation
This crate works with Cargo and can be found on
crates.io with a Cargo.toml
like:
[]
= "1.0"
Requirements
Minimum supported Rust version is 1.48.0. No other dependencies.
Usage
A simple example:
use Read;
use IterRead;
let source = vec!;
let mut reader = new;
let mut buf = vec!;
reader.read_exact.unwrap;
assert_eq!;